#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
void Reverse(char* p,int len)
{
	int i = 0;
	for (i = len - 1; i >= 0; i--)
	{
		printf("%c", *(p + i));
	}
}
int main()
{
	char arr[10000] = {'\0'};
	char* p = arr;
	gets(arr);
	int len = strlen(arr);
	printf("\n");
	Reverse(p,len);

	return 0;
}